package gao.xiaolei.util;

import java.io.File;

public class DeleteFlod {

	// 递归删除文件夹
	public void deleteFile(File f) {
		File[] files = f.listFiles();
		if (files != null) {
			for (File file : files) {
				if (!file.isDirectory())
					file.delete();
				else {
					deleteFile(file);
				}
			}
		}
		f.delete();
	}
}
